# ZeroDivisionError
try:
    print(10/0)
except ZeroDivisionError:
    print('ZeroDivisionError')

# IndexError
try:
    lst = [10, 20, 30]
    print(lst[4])
except IndexError:
    print("IndexError")

# KeyError
try:
    d = {'name': 'htl', 'age': 20}
    print(d['gender'])
except KeyError:
    print('KeyError')

# NameError
try:
    print(hello)
except NameError:
    print('NameError')

# SyntaxError
# print('hello)

# ValueError
try:
    print(int('a'))
except ValueError:
    print('ValueError')

# AttributeError
try:
    i = 10
    print(i.name)
except AttributeError:
    print('AttributeError')

# TypeError
try:
    print('hello'+123)
except TypeError:
    print('TypeError')

# IndentationError
#print("")
#    print('hello')


